﻿#include <stdio.h>

//main10：while循环表达式
int main10(void)
{
	int a = 0;
	int sum = 0;
	while (a < 100)
	{
		a++;//a+=1; a=a+;
		//printf("1.输出a的值：%d\n", a);
		sum += a;
	}
	printf("2.输出1到100的和为：%d\n", sum);//5050
	return 0;
}